<script >
export default{
    data(){
        return{
            score:50
        }
    }
}
</script>

<template>  
<div>红太狼的怒气：{{ score }}</div>
<input type="button" value="-10" @click="score-=10">
<input type="button" value="+10" @click="score+=10">
<p v-if="score>=100">揍灰太狼!!</p>
<p v-else-if="score>=70">骂灰太狼!!</p>
<p v-else-if="score>=30">抓羊!!</p>
<p v-else>给灰太狼做饭</p>
</template>

<style scoped>

</style>
